<div class="container">
	
    <div class="topbar">
    	<span class="topbar_login">
			<?php
	    		global $page_base;
				if( GetLoginUserID() && $page_base != 'logout' ){
					
					$mailUnreadCount = GetLetterDAO()->GetInLetterUnreadCount( GetLoginUserID() );
			?>			
				<a href="<?php echo edp_href_link(PAGENAME_USER_INFO); ?>"><?php echo GetLoginUserName(); ?> </a>
	            <a href="<?php echo edp_href_link(PAGENAME_MAIL_INBOX); ?>">站内信(<?php echo $mailUnreadCount;?>) </a>
	            <a href="<?php echo edp_href_link( PAGENAME_LOGOUT )?>">退出 </a> | 
    	<?php } else {?>
    	<a class="strong" href="<?php echo edp_href_link(PAGENAME_LOGIN); ?>">登陆</a> |
    	<a  class="strong"  href="<?php echo edp_href_link(PAGENAME_REGISTER); ?>">免费注册</a> | 
    	<?php }?>
   	
    	</span>
  	
 			<a href="<?php echo edp_href_link(PAGENAME_MAIN);?>">首页</a> | 
			<a href="<?php echo edp_href_link(PAGENAME_HELP, 'subpage=201');?>">新手上路</a> | 
			<a href="<?php echo edp_href_link(PAGENAME_TOP_DETAIL);?>">店铺排行榜</a> | 
			<a class="grayfont" href="<?php echo edp_href_link(PAGENAME_MAIN);?>" onclick="window.external.addFavorite(this.href,this.title);return false;" title='花开里' rel="sidebar">加入收藏</a> 
 
    </div>
  <div class="header">
	  <div class="logo"><a href="http://www.huakaili.com"><img alt="花开里-国内第一家网店点评" src="<?php echo IMAGE_DIR; ?>logo.png" border="0" height="78" width="239" alt="花开里"></a></div>
        <div class="searchbar_top">
    		<div class="searchbar_left"></div>
            <div class="searchbar_middle">
                <form class="searchtopform" id="searchform" name="searchform" action="<?php echo edp_href_link(PAGENAME_SHOP_SEARCH_RESULT); ?>">
					<input type="hidden" id="platid" name="platid" value="" />
                    <select gtbfieldid="2" id="searchtype" class="search_filter">
                          <option selected="selected" value="/shop_search_result" platid="">店铺</option>
                          <option value="/shop_search_result" platid="100">商城</option>
                          <option value="/product_search_result" platid="">商品</option>
                    </select>
               		<input autocomplete="off" name="q" id="keyword" value="输入店铺名、掌柜名进行搜索..." class="search_input ac_input" type="text">                 
                	<input class="search_btn" type="submit" value="提交查询"> 
                	
                	<span class="high_search">
                		<a style="cursor: pointer;" href="<?php echo edp_href_link(PAGENAME_ADVANCED_SEARCH); ?>">高级搜索</a>
                	</span>
                </form>
            </div>
			<div class="searchbar_right"></div>
		</div>
  </div>

	<div class="nav clear strong">
		 	<div class="nav_left"></div>
	   		<div class="menu_left">
	   			<a href="<?php echo edp_href_link(PAGENAME_INDEX); ?>">首页</a> 
	   			<a href="<?php echo edp_href_link(PAGENAME_PLATFORM,'platid=1');?>">淘宝店铺</a> 
	   			<a href="<?php echo edp_href_link(PAGENAME_PLATFORM,'platid=3');?>">拍拍店铺</a> 
	   		<!--	<a href="<?php echo edp_href_link(PAGENAME_PLATFORM,'platid=4');?>">百度有啊</a>  -->
	   			<a href="<?php echo edp_href_link(PAGENAME_PLATFORM,'platid=2');?>">易趣店铺</a> 
	   			<a href="<?php echo edp_href_link(PAGENAME_PLATFORM,'platid=100');?>">购物商城</a> 
	   		</div>
	    	<!--主导航-->
	   		<div class="menu_right"> 
	   			<a href="<?php echo edp_href_link(PAGENAME_COUPON_SUMMARY);?>">优惠券<sup><img src="<?php echo IMAGE_DIR; ?>index/menu_new.gif" alt="优惠券" /></sup></a> 
	   			<a href="<?php echo edp_href_link(PAGENAME_GIFT_SUMMARY);?>">E币换礼<sup><img src="<?php echo IMAGE_DIR; ?>index/menu_new.gif" alt="E币换礼" /></sup></a> 
	   			<a href="<?php echo edp_href_link(PAGENAME_TOP_DETAIL);?>">网店排行榜</a>
	   		 </div>
	   	</div>
